package way.learning.zz.event;

import way.learning.zz.DirectoryPoller;
import way.learning.zz.source.FileElement;
import way.learning.zz.source.PolledDirectory;

abstract class EventExposingFileElement extends EventExposingPolledDirectory {

    //轮询目录下的文件
    private final FileElement file;

    EventExposingFileElement(DirectoryPoller directoryPoller, PolledDirectory directory, FileElement file) {
        super(directoryPoller, directory);
        this.file = file;
    }

    /**
     * 返回触发此事件的fileElement
     */
    public FileElement getFileElement() {
        return file;
    }
}
